Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue-5662-kotlinstyle #5833

Merged
merged 25 commits into from
Sep 19, 2024
Merged

Conversation

tristan81
Copy link
Contributor

Fixes #5662

  • Bulk automated formatting updates on the code base using ktLint --format
  • Multiple manual changes to meet ktLint standard rules including:
  • removal of wildcard imports (standard:no-wildcard-imports)
  • successive KDOC comments (standard:no-consecutive-comments)
  • unexpected indentation (standard:indent)
  • excessive line lengths (standard:max-line-length)
  • class naming (standard:class-naming)
  • try catch spacing (standard:try-catch-finally-spacing)
  • removal of underscores, capitalisation in fun names (standard:function-naming)
  • filename not matching class name (standard:filename)
  • backing property used with private property (standard:backing-property-naming)
  • lexicopgraphical import ordering (standard:import-ordering)

Tests performed (required)
Tested 'app' profile on Virtual Device (Pixel_7_Pro) with API_35

Ran 'All Tests', failures reported, the same failures reported when executed on the unmodified codebase. Unsure if this is a configuration issue like user account or pre-existing issue with the unit tests.

  • AboutActivityTest 9/9
  • LoginActivityTest 3/3
  • MainActivityTest 0/5
  • ProfileActivityTest 0/1
  • ReviewActivityTest 0/1

Screenshots (for UI changes only)

  • None

…properties public, matched names and refactored
Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

App still works as expected, I tried Nearby, notifications, Explore, uploading a few files.
I haven't checked all files but a sample looked good.

@nicolas-raoul nicolas-raoul merged commit 2d82a43 into commons-app:main Sep 19, 2024
1 check passed
@nicolas-raoul
Copy link
Member

Thanks a lot @tristan81 for the fast work!

Just being curious, what tool(s) did you use? :-)

@tristan81
Copy link
Contributor Author

Thanks a lot @tristan81 for the fast work!

Just being curious, what tool(s) did you use? :-)

nothing ground breaking I used the latest version of ktlint, 1 round of autoformat (ktlint --format), then I outputed the remaining errors to an Excel workbook and just ticked them off one by one.

@tristan81 tristan81 deleted the issue-5662-kotlinstyle branch September 20, 2024 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix 119 minor Kotlin styling error
2 participants